package com.cskaoyan.controller.wxgoods;

import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.vo.WXHomeIndexVo;
import com.cskaoyan.service.WXHomeIndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("wx/home")
public class WXHomeController {
    @Autowired
    WXHomeIndexService wxHomeIndexService;

    @GetMapping("index")
    public BaseRespVo getHomeIndex(){
        WXHomeIndexVo indexVo = wxHomeIndexService.getIndexVo();
        return BaseRespVo.ok(indexVo);
    }
}
